function getDateMap(timestamp){
    var date = new Date(timestamp);
    var tempTime = {
        year: date.getFullYear(),
        month: (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1),
        day: date.getDate() < 10 ? '0' + date.getDate() : date.getDate(),
        hours: date.getHours() < 10 ? '0' + date.getHours() : date.getHours(),
        min: date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes(),
        sec: date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
    };
    return tempTime;
}


//yyyy-MM-dd
function convertTimestampToStringWithDate (timestamp){
    //获得时间
    var tempTime = getDateMap(timestamp);
    return tempTime.year + "-" + tempTime.month + "-" + tempTime.day;
}
